<extend name="./ljfbase" />
<block name="main">
    <div class="container">
        <div class="row">
            <div class="col-md-10 col-md-offset-1">
                <block name="log">
                    <div class="row mt10">

                        <div class="col-md-4">
                            <div class="row">
                                <div class="col-md-4"><a class="btn btn-link" href="{:U('Log/index')}"><h4>我的日志</h4></a></div>
                                <div class="col-md-4"><h4><a class="btn btn-link" href="#">私密日志</a></h4></div>
                                <div class="col-md-4"><h4><a class="btn btn-link" href="#">记事本</a></h4></div>
                            </div>
                        </div>
                        <div class="col-md-4  col-md-offset-4">
                            <div class="row">
                                <div class="col-md-3"><a class="btn btn-link" href="#"><h4>草稿箱</h4></a></div>
                                <div class="col-md-3"><a class="btn btn-link" href="#"><h4>回收站</h4></a></div>
                                <div class="col-md-3"><a class="btn btn-link" href="#"><h4>设置</h4></a></div>
                                <div class="col-md-3"><a class="btn btn-link" href="#"><h4>建议</h4></a></div>
                            </div>
                        </div>

                    </div>
                    <hr>
                    <div class="row">
                        &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<a class="btn btn-primary" href="{:U('Log/add',array('user_id'=>$vuser['id']))}" role="button">写日志</a>
                    </div>
                    <table class="table table-striped mt20">
                        <tr>
                            <td class="col-md-8">日志列表</td>
                            <td class="col-md-2">发表时间</td>
                            <td class="col-md-2">操作</td>
                        </tr>
                        <volist name="list" id="log">
                            <tr>
                                <td class="col-md-8"><a href="{:U('detail',array('logid'=>$log[id],'user_id'=>$log['uid']))}">{$log.title}</a></td>
                                <td class="col-md-2">{$log.ctime|date='Y-m-d H:i:s',###}</td>
                                <td class="col-md-2"><a href="{:U('edit',array('logid'=>$log[id],'user_id'=>$log['uid']))}">编辑</a>|<a href="{:U('del',array('logid'=>$log[id],'user_id'=>$log['uid']))}">删除</a></td>
                            </tr>
                        </volist>
                    </table>
                    
                    {$page}
                </block>
            </div>
        </div>
    </div>
</block>